﻿@{ 
    ViewBag.Title = "Website setting";
}
@using Helper
<script src="@Url.ContentArea("~/Content/javascript/Config.js")" type="text/javascript"></script>
<div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-documents">
            </div>
            <h1>
               Setting</h1>
            <div class="clear">
            </div>
        </div>
        @if (Helper.SessionManagement.Value("pvalue").Contains("R"))
        {
            <div class="block-fluid tabs">
                <ul>
                    <li><a href="#tabs-1">Setting</a></li>
                    @*<li><a href="#tabs-2">Email</a></li>*@ @* <li><a href="#tabs-3">Email template</a></li>
                <li><a href="#tabs-4">Sao lưu - phục hồi</a></li>*@
                </ul>
                <div class="warning-area">
                </div>
                <div id="tabs-1">
                    @Html.Action("_General", "GeneralConfigManagement")
                </div>
            </div>
        }
        else
        {
            <span>Not permission</span>
        }
    </div>
</div>
<script type="text/javascript">
    ///Document Ready jQuery
    $(document).ready(function () {
        jQuery(".formsearch").hide();
        jQuery("#addnew").ShowAddnewForm();
        jQuery("#closesearchform").CloseForm();
        jQuery(".cmdupdategneral").Genneral();
        jQuery(".cmdupdateemail").Email();
        jQuery("#addaction").CreateOrUpdateTemplate();
        CKEDITOR.replace("txtcontent", { filebrowserBrowseUrl: '/Areas/Administrator/Content/ckeditor/plugins/filemanager/index.html' });
        $(".showedit").live("click", function (e) {
            var $this = $(this);
            ShowEdit(e, $this);
        });
        $(".deletemail").live("click", function (e) {
            var $this = $(this);
            Delete(e, $this);
        });

    });
</script>
